/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tubes5progin.client.clientSocketHandler;

import java.util.ArrayDeque;
import tools.constants;

/**
 *
 * @author Rezha
 */
public class protocolHandler {
    public ArrayDeque<String> protocol = new ArrayDeque<String>();
    public int tipe_protocol;
    //constructor
    public protocolHandler(int tipe){
        this.tipe_protocol  = tipe;
    }

    public void generateProtocolMessage()
    {
        if(this.tipe_protocol == constants.LOGIN_MODE){
            //generate protocol buat login
            //pertama-tama kirim pesan string bahwa si client mau konek dalam mode login
            protocol.push("TUBES5PROGIN LOGIN_MODE");
            
        }else if(this.tipe_protocol == constants.SYNC_MODE){
            //generate protocol buat sync
             protocol.push("TUBES5PROGIN SYNC_MODE");
        }
    }

}
